package com.hmkj.core.po.account;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.function.Consumer;


/**
 * 用户账户表实体信息<br>
 *
 * @author lizhijie
 * @date   2018-07-05 06:18:03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "用户账户表")
@Table(name = "biz_account")
public class Account extends GenericPo<Integer> {

    public static final String TABLE_NAME = "biz_account";

	
	/**用户ID**/
	@ApiModelProperty(value = "用户ID")
	private Integer userId;
	/**账户总额**/
	@ApiModelProperty(value = "账户总额")
	private BigDecimal total;
	/**
	 * 钱包金额
	 **/
	@ApiModelProperty(value = "钱包金额")
	private BigDecimal moneyAvailable;
	/**
	 * 可用金额
	 **/
	@ApiModelProperty(value = "可用金额")
	private BigDecimal available;
	/**冻结金额**/
	@ApiModelProperty(value = "冻结金额")
	private BigDecimal freeze;
	/**点买总额**/
	@ApiModelProperty(value = "点买总额")
	private BigDecimal tenderCount;
	/**费用总额**/
	@ApiModelProperty(value = "费用总额")
	private BigDecimal feeCount;
	/**盈利总额**/
	@ApiModelProperty(value = "盈利总额")
	private BigDecimal profitCount;
	/**备注**/
	@ApiModelProperty(value = "备注")
	private String remark;

    public Account(){}

    public Account(Consumer<Account> consumer){
    consumer.accept(this);
    }
}

